﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title>EasyChat</title>
	<style type="text/css">
		.style1 {
			width: 700px;
		}
	</style>
</head>
<body>
	<form id="form1" runat="server">
	<div>
		<asp:ScriptManager ID="ScriptManager1" runat="server">
		</asp:ScriptManager>
		<asp:Timer runat="server" Interval="1000" ID="timer" />
		<table>
			<tr>
				<td class="style1">
					Chat:
				</td>
				<td>
					Users list:
				</td>
			</tr>
			<tr>
				<td class="style1">
					<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always" OnLoad="UpdatePanel1_Load">
						<ContentTemplate>
							<asp:TextBox ID="chat" runat="server" Height="600px" Width="600px" ReadOnly="True"
								TextMode="MultiLine">
							</asp:TextBox>
						</ContentTemplate>
						<Triggers>
							<asp:AsyncPostBackTrigger ControlID="timer" EventName="Tick" />
						</Triggers>
					</asp:UpdatePanel>
				</td>
				<td>
					<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Always" OnLoad="UpdatePanel2_Load">
						<ContentTemplate>
							<asp:TextBox ID="usersList" runat="server" Height="600px" Width="150px" ReadOnly="True"
								TextMode="MultiLine"></asp:TextBox>
						</ContentTemplate>
						<Triggers>
							<asp:AsyncPostBackTrigger ControlID="timer" EventName="Tick" />
						</Triggers>
					</asp:UpdatePanel>
				</td>
			</tr>
		</table>
		<br />
		<table>
			<tr>
				<td class="style1">
					Message
				</td>
				<td>
				</td>
			</tr>
			<tr>
				<td class="style1">
					<asp:TextBox ID="message" runat="server" Height="80px" Width="600px" TextMode="MultiLine"></asp:TextBox>
				</td>
				<td>
					<asp:Button ID="send" runat="server" Text="Send" Width="137px" OnClick="send_Click" />
					<br />
					<br />
					<asp:Button ID="logout" runat="server" Text="Logout" Width="137px" OnClick="logout_Click" />
				</td>
			</tr>
		</table>
	</div>
	</form>
</body>
</html>
